package com.albert.stream;

import com.albert.entity.Product;

import java.util.ArrayList;
import java.util.List;

public class StreamTest {
    public static void main(String[] args) {
        List<Product> proList = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            Product product = new Product();
            product.setPrice(100+i);
            product.setName("lisi"+i);
            proList.add(product);
        }
        proList.stream().map(Product::getPrice);
    }
}
